﻿using F23.StringSimilarity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuChaHuRen.HeNan.XiangCheng.Common
{
    public class StringHelp
    {
        public static double matchThresholdVal = 0.80d;
        public static NormalizedLevenshtein nl = new NormalizedLevenshtein();

        private static double MatchScore(string val1, string val2)
        {
            if(nl == null)
            {
                nl = new NormalizedLevenshtein();
            }
            double matchScore = nl.Similarity(val1, val2);
            return matchScore;
        }
    }
}
